home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
demos
/
hotkeyed.exe
/
HOTKEYED.RC
< prev
next >
Wrap
Text File
|
1992-04-13
|
3KB
|
75 lines
// Copyright (c) 1992 Microsoft Corporation. All rights reserved.
#include "windows.h"
#include "HotKeyEd.h"
HotKeyEditIcon ICON HotKeyEd.ico
HotKeyEditMenu MENU
BEGIN
POPUP "&Shortcut Key"
BEGIN
MENUITEM "&Edit and Install...", IDM_EDITINSTALLHOTKEY
MENUITEM "&Remove", IDM_REMOVEHOTKEY, GRAYED
END
POPUP "&Help"
BEGIN
MENUITEM "&About HotKeyEdit...", IDM_ABOUT
END
END
ABOUTBOX DIALOG 22, 17, 179, 141
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About HotKeyEdit"
FONT 8, "Helv"
BEGIN
ICON "HotKeyEditIcon", -1, 5, 5, 16, 21
LTEXT "Shortcut Key Edit Sample", -1, 30, 5, 143, 8
LTEXT "By Microsoft Windows Developer Support", -1, 30, 13,
143, 8
LTEXT "Copyright ⌐ Microsoft Corp., 1992", -1, 30, 21, 143, 8
CONTROL "", -1, "Static", SS_BLACKRECT, 0, 36, 179, 1
LTEXT "HotKeyEdit demonstrates the implementation of a", -1, 7,
44, 167, 8
LTEXT "shortcut key edit control. When the user enters a", -1,
7, 52, 167, 8
DEFPUSHBUTTON "OK", SHIFT_BIT, 73, 121, 32, 14, WS_GROUP
LTEXT "valid shortcut key, it also lets the user install that ",
-1, 7, 60, 167, 8
LTEXT "shortcut key. The shortcut key can also be ", -1, 7,
68, 167, 8
LTEXT "removed. When the shortcut key is installed, the ", -1,
7, 76, 167, 8
LTEXT "caption is flashed to let the user know that a ", -1, 7,
84, 167, 8
LTEXT "shortcut key has been installed. The window's", -1,
7, 92, 167, 8
LTEXT "color is toggled when the shortcut key is pressed.", -1,
7, 100, 167, 8
END
HOTKEYEDITBOX DIALOG 6, 18, 189, 115
STYLE DS_MODALFRAME | WS_CAPTION
CAPTION "Shortcut Key Edit"
FONT 8, "Helv"
BEGIN
CTEXT "A shortcut key must have an ALT or CTRL modifier.", -1,
0, 37, 189, 8
CTEXT "You can also specify SHIFT but not by itself.", -1, 0,
45, 189, 8
LTEXT "&Shortcut Key:", -1, 7, 71, 49, 8
EDITTEXT IDD_HOTKEYEDIT, 60, 69, 109, 12, ES_AUTOHSCROLL
PUSHBUTTON "Install", IDD_INSTALL, 46, 95, 40, 14, WS_DISABLED
PUSHBUTTON "Cancel", IDCANCEL, 102, 95, 40, 14
CTEXT "To specify a shortcut key,", -1, 0, 7, 189, 8
CTEXT "press the key combination you want to use.", -1, 0, 15,
189, 8
CTEXT "A shortcut key must have an ALT or CTRL modifier.", -1,
0, 37, 189, 8
CTEXT "You can also specify SHIFT but not by itself.", -1, 0,
45, 189, 8
CTEXT "Use BACKSPACE to erase a shortcut key.", -1, 0, 23, 189,
8
END